home *** CD-ROM | disk | FTP | other *** search
- Getting Started With DOCZ Quickly!
-
-
- The Steps to Building a New DOCZ Documentation Library
-
- (1) DOCZ uses two directories located with environment variables to
- find files:
-
- DOCSRC: default source directory
-
- DOCREF: reference file directory
-
- The installation procedure will have created a command file in
- the directory designated for executables:
-
- Unix: docz_sym
-
- MSDOS: DOCZ_SYM.BAT
-
- VMS: SYS$MANAGER:DOCZ_LOGIN.COM
-
- This command file will create the required DOCSRC and DOCREF
- environment symbols for use by DOCZ. If you have not already, run
- this command file so that DOCZ programs will be able to find the
- files in the DOCSRC and DOCREF directories (the Unix command file
- should be dot executed).
-
- (2) Select a name for your library. The name may have, but does
- not need to have a physical relationship to any object library or
- group of programs. The name should be up to 11 characters in length,
- and should contain no punctuation.
-
- (3) Create a sub-directory to the DOCSRC directory (DOCSRC was
- created during installation), with a name the same as the name you
- have chosen for your library (upper case in Unix).
-
- (4) Select the modules to be contained in the documentation
- library. Modules are either subroutine names (when documenting
- object libraries) or program names (when documenting program or
- command file libraries). They may also be object names when using an
- object-oriented language.
-
- (5) Edit the Documentation Header in your source code for each
- module you want to document. Each source file may contain one or
- many modules, and there will be one DOCZ Documentation Header for
- each module in a source file.
-
- (6) Move the source files to your new DOCSRC subdirectory.
-
- (7) Run DOCXL or DOCLIS to add the module to the Documentation
- Index (see the DOCXL or DOCLIS program reference). DOCLIS will
- "mass-load" the documentation library with one invocation. DOCXL will
- add each module one at a time.
-
- (8) Run DOC on the library to test the documentation (see the DOC
- program reference).
-
- (9) Run DOCHBLD to build an on-line help library (see the DOCHBLD
- program reference).
-
- (10) Use the manual section, "SELECTING OPTIONS" to enhance and
- modify your DOCZ environment. If you are adapting DOCZ to a
- pre-existing development environment, this manual section will show
- you how to override the installation defaults used by DOCZ and set up
- an environment more suitable to your current environment. For
- instance, your source code does not necessarily have to be stored in
- a sub-directory with a name the same as the documentation library
- name.
-
- (11) Use the manual section, "PUBLISHING DOCUMENTATION" to learn how
- to automate Revision Notices and other types of DOCZ reports.
-
-
- The source files for many examples in various languages were
- deposited in the DOCSRC directory by the installation procedure. In
- addition, the sample documentation library called CSUB may have been
- built from sample sources at DOCZ installation time, if that option
- was selected by the installer. The bldocz command file has been
- provided in the DOCSRC directory to demonstrate how CSUB was built.
- Example Files in the DOCSRC directory.
-
- dochead.txt generic prototype DOCZ header
- dochelp.m Brief macro for the DOCHELP utility
- dochelp.txt ASCII Transport File of DOCHBLD utility to
- build a help library for the DOCZ System
- c.txt Standard C Library on-line help transport file
- fake.bas BASIC source example
- move.bat MSDOS command file source example
- cmdline.pas Pascal source example
- strmcpy.asm 8086 Assembly source example
- strmcpy.mar VAX11 Assembly source example
- mailfile.com VAX-DCL source example
- strmcpy.c C source example
- cp_r.sh Unix Bourne Shell source example
- upcase.for FORTRAN source example
- macro.h C macro example
- gtsa.prg Dbase example
- frank.prl Perl example
- docstash Unix SCCS Bourne Shell automation example
- docstash.com VMS CMS automation (DCL)
- bldocz.bat builds sample C function library (MSDOS)
- bldocz builds sample C function library (Unix)
-
-
- Example C Function Library
-
- As an example for a real DOCZ application, a DOCZ reference manual
- containing six modules is contained in the file, CSUB.DOC. The
- source files for the library are:
-
- delstr.asm
- haspriv.c
- insert.mar
- juldate.c
- macros.h
- zero.c
-
- This library happens to be a C function library, but the DOCZ System
- is not limited to any particular language.
-